/**
 * 
 */
package edu.gatech.oad.mule.input;

import java.awt.Component;

import javax.swing.JFrame;

import edu.gatech.oad.mule.input.interfaces.ControllerListener;
import edu.gatech.oad.mule.input.interfaces.ControllerOwner;
import edu.gatech.oad.mule.input.interfaces.ControllerOwner.InputDevice;

/**
 * Contains methods necessary for testing the functionality of input related
 * classes.
 * 
 * @author Dale Avery
 * 
 */
public class InputTesting {

	/**
	 * Creates and Displays a JFrame that will demonstrate the functionality of
	 * the input classes.
	 * 
	 * @param args
	 */
	public static void main(String[] args) {
		ControllerOwner owner = new DummyControllerOwner("Dave", InputDevice.KEYBOARD_STD);
		Controller control = new Keyboard(owner);
		ControllerListener listener = new DummyControllerListener();
		control.addActionListener(listener);

		Component frame = new JFrame();
		frame.addKeyListener((Keyboard) control);
		frame.setVisible(true);

	}

}
